package com.jjt.kiki.bean;
// Generated 2017-5-11 13:30:57 by Hibernate Tools 5.2.1.Final

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * Entity: 
 */
@Entity
@Table(name = "tb_res", catalog = "db_crawler")
public class TbRes implements java.io.Serializable {

	private String resId;

	private String resUrl;

	private String resUserUk;

	private String resTitle;

	private Date resCralwerDate;

	private Date resShareDate;

	public TbRes() {
	}

	public TbRes(String resId, String resUrl, String resUserUk, String resTitle, Date resCralwerDate,
			Date resShareDate) {
		setResId(resId);
		setResUrl(resUrl);
		setResUserUk(resUserUk);
		setResTitle(resTitle);
		setResCralwerDate(resCralwerDate);
		setResShareDate(resShareDate);
	}

	@Id

	@Column(name = "res_id", unique = true, nullable = false, length = 11)
	public String getResId() {
		return this.resId;
	}

	public void setResId(String resId) {
		this.resId = resId;
	}

	@Column(name = "res_url", nullable = false)
	public String getResUrl() {
		return this.resUrl;
	}

	public void setResUrl(String resUrl) {
		this.resUrl = resUrl;
	}

	@Column(name = "res_user_uk", nullable = false)
	public String getResUserUk() {
		return this.resUserUk;
	}

	public void setResUserUk(String resUserUk) {
		this.resUserUk = resUserUk;
	}

	@Column(name = "res_title", nullable = false, length = 500)
	public String getResTitle() {
		return this.resTitle;
	}

	public void setResTitle(String resTitle) {
		this.resTitle = resTitle;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "res_cralwer_date", nullable = false, length = 19)
	public Date getResCralwerDate() {
		return this.resCralwerDate;
	}

	public void setResCralwerDate(Date resCralwerDate) {
		this.resCralwerDate = resCralwerDate;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "res_share_date", nullable = false, length = 19)
	public Date getResShareDate() {
		return this.resShareDate;
	}

	public void setResShareDate(Date resShareDate) {
		this.resShareDate = resShareDate;
	}

}
